const { transformSync } = require('@babel/core');

const code = `
if(DEBUG) {
  const a = 10
  const b = 20
  console.log('DEBUG', a + b)
}
`;

const output = transformSync(code, {
  plugins: [['./debug.js', { isRemove: true }]],
});
console.log(output.code);
